def fun01():
    print("fun01()函数")
def fun02():
    print("fun02()函数")
    return fun01
func = fun02()
func()
print("")

def fun01():
    print("fun01()函数")
    def fun02():
        print("fun02()函数")
    return fun02
func = fun02()
func()
print("")

def fun01(x):
    def fun02():
        return x+2
    return fun02
func = fun01(1)
print(func())
print("")